package com.shijun.bean;

/**
 * Created by zhushijun on 2017/12/30.
 */

public class BaseModle {
    protected int width;
    protected int height;

    protected int marginTop;
    protected int marginBottom;
    protected int marginLeft;
    protected int marginRight;

    public void setWidthAndHeight(int width,int height){
        this.width = width;
        this.height = height;
    }

    public void setMargin(int marginLeft,int marginTop,int marginRight,int marginBottom){
        this.marginLeft = marginLeft;
        this.marginTop = marginTop;
        this.marginRight = marginRight;
        this.marginBottom = marginBottom;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    public int getMarginTop() {
        return marginTop;
    }

    public int getMarginBottom() {
        return marginBottom;
    }

    public int getMarginLeft() {
        return marginLeft;
    }

    public int getMarginRight() {
        return marginRight;
    }
}
